import request from '@/utils/request'

export function groupList () {
  return request({
    method: 'GET',
    url: 'api/role/group/list'
  })
}

export function userList (userName, group) {
  return request({
    method: 'GET',
    url: 'api/role/user/list?' + 'userName=' + userName + '&group=' + group
  })
}

export function addUser (userGroupParam) {
  return request({
    method: 'PUT',
    url: 'api/role/group/user/add',
    data: userGroupParam
  })
}

export function userInfo () {
  return request({
    method: 'GET',
    url: 'api/role/user/info'
  })
}
